package cn.littlehx.spring_boot_test2_2.exception;

import lombok.Data;
import lombok.Getter;
import lombok.Setter;

/**
 * 关于异常的枚举类
 */
@Getter
public enum REnum {
    UNKNOWN_ERROR(-999,"未知错误"),
    COMMON_ERROR(-10,"一般错误"),
    LOGIN_ERROR(-2,"出错了,不正确的用户名和密码"),
    SUCCESS(1,"成功");

    private Integer code;
    private String msg;

    REnum(Integer code,String msg){
        this.code = code;
        this.msg = msg;
    }


}
